package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * “邀请会员”页面，申请按钮状态枚举
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-30
 */
public enum MemberInviteButtonStatusEnum {
    /**
     * 正常状态（可继续申请） - 0
     */
    PROCEED(0, true,false, "该公司还不是我的会员，马上邀请成为我的会员"),

    /**
     * 入库审核中 - 1
     */
    DEPOSITING (1, true,false, "该公司已是我的会员，立即派单"),

    /**
     * 入库审核已经通过 - 2
     */
    DEPOSIT_PASSED(2, true,false, "该公司已是我的会员，立即派单"),

    /**
     * 淘汰 - 3
     */
    ELIMINATED(3, true,false, "该公司还不是我的会员，马上邀请成为我的会员"),

    /**
     * 黑名单 - 4
     */
    BLACKLIST(4, true,true, "该公司已是黑名单会员！"),

    /**
     * 不符合条件，不能邀请
     */
    CAN_NOT_INVITE(5, true,true, "该公司还不是我的会员，马上邀请成为我的会员"),

    /**
     * 当会员自己查看自己时，不显示按钮
     */
    DO_NOT_SHOW(6, false, true, "");

    MemberInviteButtonStatusEnum(Integer code, Boolean show, Boolean disabled, String msg) {
        this.code = code;
        this.show = show;
        this.disabled = disabled;
        this.msg = msg;
    }

    private Integer code;

    private Boolean show;

    private Boolean disabled;

    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Boolean getShow() {
        return show;
    }

    public void setShow(Boolean show) {
        this.show = show;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getMsg() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
